package cn.skillith.showcompanybackend.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestController {
    
    @GetMapping("/admin")
    public String testAdmin(Model model) {
        model.addAttribute("message", "测试页面 - 后端服务正常运行");
        model.addAttribute("timestamp", java.time.LocalDateTime.now());
        return "admin/messages";
    }
    
    @GetMapping("/simple")
    public String testSimple(Model model) {
        model.addAttribute("message", "简单测试页面");
        return "admin/error";
    }
}
